using GLib;
using Giocmd;

public class Giocmd.Main {
	public static int main (string[] args)
	{
		string rc_file = Path.build_filename (Environment.get_current_dir (), "giocommander.gtkrc");
		if (FileUtils.test (rc_file, FileTest.EXISTS) ) {
			stdout.printf ("applying local style\n");
			Gtk.rc_add_default_file (rc_file);
		}
		
		Gtk.init (ref args);
		var main_view = new MainView();
		main_view.destroy += Gtk.main_quit;
		main_view.set_default_size (800,600);
		main_view.show_all ();
		Gtk.main ();
		return 0;
	} 
}
